﻿using System.Reflection;

namespace Sigil.NonGeneric
{
	public partial class Emit
	{
		/// <summary>
		/// Pushes a pointer to the given function onto the stack, as a native Int32.
		///
		/// To resolve a method at runtime using an Object, use LoadVirtualFunctionPointer instead.
		/// </summary>
		public Emit LoadFunctionPointer(MethodInfo method)
		{
			InnerEmit.LoadFunctionPointer(method);
			return this;
		}
	}
}